package top.jojoace.JPA.model_DDL.SqlModel;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Where;
import top.jojoace.JPA.model_DDL.BaseEntity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.sql.Timestamp;
import java.util.Date;


@Getter
@Setter
@Entity
/**
 * 过滤条件
 */
@Where(clause = "delete_time is null and id = 1")
public class SqlModel extends BaseEntity {

    @GeneratedValue
    @Id
    private Long id;
    private String name;
    private String title;

}
